<!DOCTYPE html>
<html lang="en">

<head>
	<{include file="header.html" }>
		<title>班级管理-
			<{$user_data[ 'school_name']}>-德安信会计在线教育平台</title>
			<script>
			$(function(){
					$(".change_code").click(function(){
						var cid = $(this).attr("cid");
						var obj = $(this);

						$.ajax({
							url:"/classes/change_join_code/"+cid,
							type:"post",
							success:function(res){

								$(obj).parent().parent().siblings('span').text(res);
							}
						});
					})
			})
			</script>
</head>

<body>
	<div class="wrap">
		<!--star left-->
		<div class="column">
			<{include file="left_menu.html" }>
		</div>
		<div id="ContMianBox">
			<!--star子栏目-->
			<div class="sub-colum">
                <div class="tit"><{$left_menu_min.menu}></div>
                <ul>
                    <{foreach from=$left_menu_min.list item=item}>
                    <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                    <{/foreach}>
                </ul>
            </div>
			<!--end子栏目-->
			<!--end left-->
			<div class="container narrow">
				<!--star conter-->
				<div class="cetContent">
					<div class="tit p-lr20">
						<span class="curr">班级管理</span>
						<span><a href="/classes/add">创建班级</a></span>
					</div>
					<!--star内容区域-->
					<div class="mainScroll">
						<div class="mainContainer line-all">
							<!--star tabMainCont-->
							<div class="tabMainCont">

								<fieldset class="layui-elem-field">
									<legend>筛选</legend>
									<div class="layui-field-box">
										<form class="layui-form layui-form-pane1" action="/classes/courseware" method="post">
												
											<div class="layui-form-item">
												<div class="layui-inline">
													<div class="layui-input-inline">
														<input type="text" name="name" placeholder="课件名称" style="" autocomplete="off" class="layui-input" <{if !empty($conditions.name)}>value="<{$conditions.name}>"<{/if}>>
													</div>
												</div>
												<div class="layui-form-mid"></div>
												<div class="layui-inline">
													<button type="submit" class="layui-btn">搜索</button>
													<a class="layui-btn" href="/classes/upload_course/<{$class_id}>"><i class="layui-icon"></i> 上传新课件</a>
												</div>
											</div>
										</form>
									</div>
								</fieldset>
								<!--商品列表 star-->
								<div class="goods_list p-t10">
									<div class="mtc_tab">
										<!--star mt-->

										<!--end mt-->
										<!--star mc-->
										<div class="mc">

											<div class="u_table_list m-t20">
												<!--star 商品-->
												<div class="table002">
													<table>
														<colgroup>
															<col width="%">
															<col width="%">
															<col width="%">
														</colgroup>
														<tbody>
															<tr>
																<th>课件名称</th>
																<th>上传时间</th>
																<th>下载地址</th>
																<th>操作</th>
															</tr>
														</tbody>
														<tbody>
															<{foreach from=$courses['result'] item=item}>
																<tr>
																	<td class="not_lb tal">
																		<span class="c-057edb">
																			<a href="/classes/detail/<{$item['id']}>"><{$item['name']}></a>
																		</span>

																	</td>
																	<td class="not_lb tal">
																		<{$item[ 'course_fiel']}>
																	</td>
																	<td class="not_lb tal">
																		<{$item[ 'add_time']|date_format: '%Y-%m-%d'}>
																	</td>
																	<td class="not_lb tal">
																		<div class="colorBtn">
																			<p><a href="/classes/delete_course/<{$item['id']}>" onclick="return confirm('确定要删除课件吗？')">删除课件</a></p>
																		</div>
																	</td>
																</tr>
															<{foreachelse}>
															<{/foreach}>
														</tbody>
													</table>
												</div>
												<!--end 商品-->
											</div>
											<div class="pages p-tb20 " style="text-align:right;">

												<ul>
													<{$pagination}>
												</ul>

											</div>
										</div>
										<!--end mc-->
									</div>

								</div>
								<!--商品列表 end -->
							</div>
							<!--end tabMainCont-->
						</div>

					</div>
				</div>
				<!--end内容区域-->

				<!--end conter-->
			</div>


		</div>
	</div>
	<{include file="footer.html"}>
</body>

</html>
